{% extends "base.html" %}
{% block title %}
  View Poll Results
{% endblock %}
{% block pagetitle %}
  Poll Results
{% endblock %}
{% block main %}
  {% if error_message %}
    <p class="error">{{ error_message }}</p>
  {% endif %}
  <p>{{ poll.question }}</p>
  <ul>
    {% for choice in poll.choice_set %}
      <li>{{choice.name}} ({{ choice.vote_set.count }})</li>
    {% endfor %}
  </ul>
{% endblock %}
